home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2929 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: castle.nando.net!news
  2. From: sekruege@nando.net (Steve Krueger)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Bug in cpr: OpenDevice() from tasks
  5. Date: 7 Feb 1996 01:51:48 GMT
  6. Organization: News & Observer Public Access
  7. Message-ID: <4f90jl$dgd@castle.nando.net>
  8. References: <40126514@rzstud2.rz.uni-karlsruhe.de>
  9. NNTP-Posting-Host: vyger415.nando.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsReader: Interworks_GRn 3.0 January 12, 1996
  14.  
  15. In article <40126514@rzstud2.rz.uni-karlsruhe.de> "Patrick Ohly" <un60@rzstud2.rz.uni-karlsruhe.de> writes:
  16. : Hi!
  17. : I found a bug in cpr V6.56: When a task under control of the
  18. : debugger tries to open a device Enforcer reports some hits
  19. : in the dos.library and finally the system crashes.
  20. : I guess that cpr's patch of OpenDevice() assumes that only
  21. : processes call OpenDevice() and fails with tasks. However,
  22. : from V36 on tasks are allowed to call OpenDevice().
  23. : Is my assumption correct and is there a chance that this bug
  24. : will be fixed? Admittedly, a workaround is simple: Use
  25. : processes instead of tasks while debugging. That's what I'll
  26. : do...
  27.  
  28.  
  29. CPR's setfunctions grap the filename, and then use DOS.LIBRARY
  30. to try to find the file (ie does DEVS: need to be prepended or
  31. not). I guess calls to DOS.LIBRARY are not too good from a task.
  32.  
  33. CPR needs the full path so that it can later load the
  34. debug information.
  35.  
  36. Fixing this would be rather difficult. I guess I'd have to have CPR
  37. OpenDevice patch send a message back to CPR somehow. 
  38.  
  39.  
  40. Another workaround is to disable CPR's patches with the -nolib
  41. option, and add code to produce a harmless enforcer hit in your
  42. device. When CPR stops at the enforcer hit, you should be able
  43. to load the debug info by hand with the SYMLOAD command. An example
  44. of this method is included with SAS/C.
  45.  
  46.  
  47.  
  48. --                    |__  o\
  49.        ______         | W    \O
  50. __________  /__       |       H\_  
  51. __  ___/_  //_/       |      /-\   
  52. _(__  )_  ,<          |    /     \ 
  53. /____/ /_/|_|         |            
  54. sekruege@nando.net    |
  55.